<?php
namespace app\admin\validate;

use think\Validate;

class Category extends Validate {
    protected $rule =   [
        'title'  => 'require',
        'model_id'   => 'require',
        'parent_id' => 'require',    
    ];
    
    protected $message  =   [
        'title.require' => '分类名必须',
        'model_id.require'     => '分类模型必须',
        'parent_id.require'   => '分类必须',
    ];
}